package com.example.yian.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@TableName("rectifications")
@Data // This annotation generates all getters, setters, toString, equals, and hashCode methods.
@AllArgsConstructor // Generates a constructor with all arguments.
@NoArgsConstructor // Generates a no-args constructor.
public class RiskRectification {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    public Long getId() {
        return id;
    }

    @TableField("risk_id")
    private Long riskId;

    public Long getRiskId() {
        return riskId;
    }

    private String image;

    @TableField("rectification_contents")
    private String rectificationContent;

    public String getRectificationContent() {
        return rectificationContent;
    }

    public String getImage() {
        return image;
    }

    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private Timestamp createdAt;

    public Timestamp GetUpdatedAt() {
        return updatedAt;
    }

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private Timestamp updatedAt;

    public Timestamp GetCreatedAt() {
        return createdAt;
    }
}
